<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>jQuery Pagination分页插件demo</title>
<link rel="stylesheet" href="pagination.css" />
<style type="text/css">
body{font-size:84%; color:#333333; line-height:1.4;}
a{color:#34538b;}
#Searchresult{width:300px; height:100px; padding:20px; background:#f0f3f9;}
</style>
<script src="http://code.jquery.com/jquery-1.9.1.min.js"></script>
<script type="text/javascript" src="jquery.pagination.js"></script>
<script type="text/javascript">
  $(function(){
	(function() {

        new $.fn.pagination({
            dom : $("#Pagination"),
            total_num : 8, 
			num_edge_entries: 1, 
            current_page:1,
			num_display_entries: 4, 
			items_per_page:1,
            callback : function(current){console.log(current)}
		});
 
        //pagination.init($("#Pagination")); 


        /*
		$("#Pagination").pagination({
            total_num : 8, 
			num_edge_entries: 1, 
            current_page:1,
			num_display_entries: 4, 
			items_per_page:1,
            callback : function(current){console.log(current)}
		});
        */
	})();
  });
</script>
</head>

<body>
<h1>jQuery Pagination分页插件demo</h1>
<div id="Pagination" class="pagination"><!-- 这里显示分页 --></div>
</body>
</html>
